package com.itheima.day06;

import java.time.LocalDate;
import java.time.Period;
import java.util.Arrays;
import java.util.function.IntToDoubleFunction;
import java.util.function.IntUnaryOperator;

public class Practice7 {
    public static void main(String[] args) {
        Period p = Period.between(LocalDate.now(),LocalDate.of(2020,3,5));
        System.out.println(p.getDays());
        System.out.println(p.isNegative());//判断Period日期差对象是否为负数，是返回true

        double [] arr = {1,23,334,43,3,2,1,32};
        Arrays.setAll(arr, new IntToDoubleFunction() {
            @Override
            public double applyAsDouble(int value) {
                return 0;
            }
        });

    }
}
